<template>
	<view>
		<view v-for="(item,index) in datalist" style="margin: 10rpx;">
			<CustomTextView :nid="item.nID" :title="item.title" :isTop="item.isTop" :author="item.author"
				:comments="item.comments" :time="item.time" @click="onCustomViewClick(index)" >


			</CustomTextView>
		</view>


	</view>
</template>

<script>
	import CustomTextView from "/components/cartViewText.vue"
	export default {
		components: {
			CustomTextView
		},
		data() {

			return {
				datalist: [{
					nID: "1",
					title: "时隔十年，沪指重返4000点",
					isTop: true,
					author: "扬子晚报",
					comments: 42,
					time: "2025.10.28",
				}, {
					nID: "2",
					title: "2022年以来最大规模人员调整：亚马逊计划裁员3万人",
					isTop: true,
					author: "DoNews",
					comments: 46,
					time: "2025.10.28",
				}, {
					nID: "3",
					title: "黄金跌破4000美元！",
					isTop: false,
					author: "齐鲁壹点",
					comments: 5,
					time: "2025.10.28",
				}, {
					nID: "4",
					title: "神秘绿色球体划过莫斯科上空，仅持续几秒钟",
					isTop: false,
					author: "金羊网",
					comments: 16,
					time: "2025.10.28",
				}]



			}
		},
		methods: {

		}
	}
</script>

<style>

</style>